package com.example.constant;

public interface MqConstants {
    interface Exchange {
        String ORDER_EXCHANGE = "order.delayed.exchange";
        String GOOD_EXCHANGE = "order.topic";
        String SMS_EXCHANGE = "sms.direct";
        String ERROR_EXCHANGE = "error.topic";
        String PAY_EXCHANGE = "pay.topic";
        String TRADE_DELAY_EXCHANGE = "trade.delay.topic";
        String LIKE_RECORD_EXCHANGE = "like.record.topic";
        String PROMOTION_TOPIC = "promotion.topic";
    }

    interface Queue {
        String ERROR_QUEUE_TEMPLATE = "error.{}.queue";
        String ORDER_DELAY_QUEUE = "delay.order.queue";
        String REFUND_DELAY_QUEUE = "delay.refund.queue";
    }

    interface Key {
        String ORDER_PAY_KEY = "order.pay";
        String ORDER_REFUND_KEY = "order.refund";
        String SMS_MESSAGE = "sms.message";
        String ERROR_KEY_PREFIX = "error.";
        String DEFAULT_ERROR_KEY = "error.#";
        String PAY_SUCCESS = "pay.success";
        String REFUND_CHANGE = "refund.status.change";
        String ORDER_DELAY_KEY = "delay.order.query";
        String COUPON_RECEIVE = "coupon:receive";
        String STOCK_LOCK = "stock:lock";

    }
}
